package cutetd.action;

import java.util.ArrayList;
import java.util.List;

import com.opensymphony.xwork2.ActionSupport;

import cutetd.dao.NaviDao;
import cutetd.model.M_Navi;

public class FrameAction extends ActionSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private NaviDao naviDao = new NaviDao();
	private List<M_Navi>  naviList = new ArrayList<M_Navi>();

	public String header() {
		setNaviList(naviDao.getVisibleList());
		return SUCCESS;
	}
	
	public String footer() {
		return SUCCESS;
	}

	public void setNaviList(List<M_Navi> naviList) {
		this.naviList = naviList;
	}

	public List<M_Navi> getNaviList() {
		return naviList;
	}
}
